import Vue from 'vue'
import Router from 'vue-router'

import list from '@/view/list'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/', component: () => import('@/view/home/Home')
    },
    {
      path: '/list', name: 'list', component:  list,
      children:[
        {
          path: 'goodsDetails', name: 'goodsDetails', component: () => import('@/view/list/goodsDetails')
        }
      ]
    },
    {path:'/my',name:'my',component :() => import('@/view/my/index')},
  ]
})
